﻿using System.Windows;

namespace Demos.Heap
{
    /// <summary>
    /// Interaction logic for View.xaml
    /// </summary>
    public partial class View : Window
    {
        public View()
        {
            InitializeComponent();
        }
        
        void WindowOnSizeChanged(object sender, SizeChangedEventArgs args)
        {
            (DataContext as ViewModel).MaxX = ControlArbol.ActualWidth;
            (DataContext as ViewModel).MaxY = ControlArbol.ActualHeight;
            (DataContext as ViewModel).Dibujar("WindowResize");
        }
        
        private void Salir_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
